import { CommodityListType } from "../adminHttp/commodityManage"

export type CreateOrderParamType = {
  shoppingIds: number[],
  address: string | Object
}

export type GetOrderListParamType = {
  teaName: string,
  state: '待支付' | '待确认' | '已完成' | ''
}

export type OrderListType = {
  id: number,
  orderId: string,
  remark: string,
  createTime: string,
  itemList: OrderItemType[]
}

export type AddOrderItemType = {
  orderId: string,
  teaId: number,
  orderNumber: number
}
export type OrderItemType = Omit<CommodityListType, 'number'> & { orderNumber: number, orderItemId: number }